adding diagram check