inserting graphs