added check time left for task model