optionObj and groupObj now working