reordered Actor.setState() method