added footer, completed team query