removes unnecessary methods