adjusting brace positions
renaming variable for better readability