re-add some recentering logic