filter unneeded tags