added quantity freebies functional