changed vardecl to localvar