problems with variable declarations