added several new functions including sell item