update code to exatactly real code