added example in api usage