corrected all errors wrt to finding nghs