use method reference instead of header/footer.get()

use method reference instead of header/footer.get()