revert typename to class