update code for 2007