changed program flow to 'keep the indentation at bay'