added giveCode