remove extraneous modes