example code for used HCPS