update code: basic foundation