add some more variables: cool freq, number of ions beginning and end and number of ec