simplifying some methods, serialize method