added needed static to variable declaration