update code to running status