set code field so it isnt overwritten