update some basic code