math cleanup, debugPrint instead of print