use time in place of mktime, thanks Todd!