added quantity functionnality