setting ready state