removed redundant Math.floor().