some adjust for vs2010