completed selling functionality