how to combine multiple states.