fix variable declaration