fixing terrible mistake calculating the pixel offset
enclosing world