sample code for integration