added headers to other end() methods