now with cool closing time function