minor changes in pythagoras function and sensor sensitivity