add group query method