slightly modified (no longer summing over + and - strands)