fixed naming of one char variable and indention