skelecton code for recenter command