add aggregated state to variables