modify variationsController and variablesController