added canting angle logic (not quite right yet)