removed unuseless Math.abs() calls