added a declaration for snd to the initialize app function