nicely working crossing point detection