diagram final