properly adjust the spacing