added check for parse exception