setting address is allowed before function set