add line intersection method