update basic code