adding codes