add query block method