function to make climages written now; untested