collect variable declarations.