saving metadata prior to the lines