fix indexing, ignore class as attr