updated getting classname