reformatting code part2