changed class to name for serialization purposes