added function to add time