changed init to hash dict