reduced code indentation

make it easier to follow the code