make repr_X same shape as X