moved code to neighborcount()