added quantity parser