fixed parser references to wrong variable for prog 3 to work