came up with a scheme to solve wall sliding problem