update source code for walk controller