fixed API example