added variable staging