revert to old centering code