removed Math.abs - unnecessary