changed state to location