added 2011 version of recentering code