solution change to 2010 ,change some incompatible code at 2010