first attempt at pruning