added diagram