add sample  fix bugs