FIXED pruning
TESTED stuff