use klass as key for collections