fixed missing variable declaration