adding header to frames