try out to fix bug for unequal rows