give the ability to pass in a state value