added diagram to text