simplified auto centering