added insert and return site option group function