update code for command