rearrange VS2008 solution