prettified the code