corrections to address_complements function