simplify within world boundary function