modify time function