change code to basic code