fix unused time variable