moved variable declaration outside case