moved variable declaration