now should send state correctly