removed check date code