set time variable, removed un-used code