added addarrow method