adding resub,ission check to avoid multiple submission