add clause and footer