basic snippet functionality#