changed default codes from 0 to 3