very simple surface detection