add time parameters on constructor and set time time