add snippet helpers