changed numBytesToMove to double.. more accurate