checking for resubmission