implementation of "double jeopardy" part one