formatting the code