added ability to cacluate backwards jumps