serialize for reals