fixed compute horizontal score algorithm and processing of subheaders