corrected indentation bug