input new code for centering