join two methods of parsing