backend of snippet