adding re submission processing logic