add get/set snippet