resolve several binary operators