Reformatting API return data