added indentation in for and if functions