added check to see if thresholds met for sell