add stdafx and fix