add defence code for address