time function changes