sample code in API3 correction