added penalty for zero-similarity beads