renamed some vars in get_address to make it easier to understand slice logic