removing stuff that should be ignored