creating scope for variables in case labels; further reduced errors