Diagrams depends functions