add in crediting, make HashMap methods outside hashmap construction