helper methods to state object