add max_angle calculations, they are not useful at all
replace max angle with mean angle