change stucture of snippet