adding parser functions to main