changed rows to be immutable object