write new inp files