implement serialMap