updated edit_spec