adding floor to the query