combined ams into same file as inserts