apply-with sample