changed layout of alsa code