accept array as input for createAddress()