added functionality for control variables