change r/o variables to 'dim'