proper api call