deal with null row and serialization