use hashmap for associations