adds variables domain and range