manage spacing to rules