change model. now only stores idx