prettify solution