corrected nethmc class for pan to work