signed to unsigned before comparing