simple logic for filling intersections