variable reduction and table changes