fixing API