replace bitwise OR with Math.round