fixing api calls replacing deparcated fields array