added class name retrieval