add time functional