changed date lock checker