another method of centering