now works when data has spurious extra dimensions