add headers to functions