added check before making an immutable row