corrected Math.abs()