add address logic