merging to parsing methods codes