fixed example of api