diagram, creates,inserts