fixed some inconsistent indentation and a typo