added a time variable