write VarDecl for top level