build overlap grapth should work, small modif for formatting