added variable routing