replace ceil with floor