Get rid of raytest
some experimentation with slopes