modified program to run on 2008 through 2012