fixed used of a[:class_name]