search group logic

1. search group logic