add snippet creation