changed id name, added idx to category group