fixing indentation and variable names