use time() instead of current_time()