changed Math.floor to Math.round