worked on ensuring parameters passed are strict in terms of being either objects or strings