replace Math.trunc with Math.floor..