fixed var declaration