added back in market time check