revert set class name logic