remove obsolete bits