add state.go syntax to both and remove logs