fix indentation and improved styling