added pipe crossing table + update function