implement except appendIfBingo, with a bug