add sample and change code