corrected pahe class