trestle slightly optimized, cobweb with pruning