fixing typo error and removing unnecessary new line