implemented the addition processing function