to add keeptimems check