adding sparse and dense serializations