added the main func to parsing