basic solution to world wrapping