fixing data dimensions