making dates reliable and adding date control