corrected check for point source ID and file source ID and little variable name change