learning to find the surface