reformat code, reduced hard texts