headl functionality done using string builder