changed left 'code' to 'value'