eliminated the instantiation of the state object which I am not currently using in the main logic