made api call consistent