corrected indentation issues and lack of  }