add time method