updated with prettify the output