modified add_time