fixed api calls by updating util method