use time instead mktime