changed set_spec to spec_set