added snippet implementation, mappable onto templates