fixed indentation issues and removed redundant empty lines