changed addresses to arrays