change "4" to "this.head_length" in checkEnoughData