remove maxneigh variable and indent properly