addapte to version 2010 of vs
just before making measure