added type keyword, moved static vars declaration to declaration section