clean calc_spec