working on modal graphs