added quantity to tables