clean up of binary level codes