added block scanning for non power of 2 procs