nominal to binary functionality