change of attribute option function