got it to work for intersection