normalize the spacing