implemented some kind of intersection code in a new action