fixed errors in Parser Class