add sample and some corrections