cleanup of unused bits