code clean and format