add control flow to score correctly