initial code for update command

still not working...