prune unneeded method