Bug fix & name change

- removing unwanted object from function definition
- name change for incorrectly names array key