this.end was not being called