making the recenter code work?