changed method from name() to toString() for enums