typo
indexOf on objects as well, because why not
update naming for Map