passed all test and corrected some indentation