worked on integration between parser and main