use classname property instead of method