prettified the code for uniform syntax, formatting