missing XY coordinate check fixed in checkrgffilecontent function