changed string formatting to {n}, fixed indentation