updating spacing