Solved coordinate problem..stopping plane at the boundary