add if sample and unless statement