function snippet add'