change checkmarks to use hashmap instead of array