code indentation improved