implemented serialization methods for the element