code for all spacing