finished hitrun function

??? hopefully !!! no examples or tests yet