corrected text message and tidied up indentation