remove un-needed bits