worked on arc segment intersection