Preventing and solving discipline