changed deprecated ifloor to floor