add time condition