added 'snd' function'