fix indent and remove useless empty lines