added control for centering.