normalized the writing of the code