fixing backend api call