implemented digram