renamed convert to serialize