changed return type of Iterator.head() to return headers