added change of state