remove datetime refernec e where unnnecessary