retab only
mapping was set to nonsense when exceeded spline bounds
whitespace only
cleanup some useless logic