Schools get smarter at discipline