add get snippet