new method for sha256 modulo 1000