start integrating smoothState (doesn't work yet)