updated state a bit