variable declaration fix