added #prune left right and middle