prettified some code