remove duplicate api request and combine request to one