updating to check date