fixing coding style and get working degreport