added labels in the middle of arrows