added loop if goto unrecognized error.