implemented time ceiling