added selling functional