remove dimensions from scalar parameters