troubleshooting weird group function