fixed bug that didn't allowed to try to get keys not inside the hashmap, added remove function