brush up: add logging and change degree.