adding parser function