remove unnecessary api call