changed the arrangement of the code for hdrdsn
Continued positioning of hdrdsn