adapted for switches or crossings