removes all unnecessary methods