start refactor of variables in updateDIR