unneccessary Math.abs() removed