updating api structure