add time constraint