sell functionality