creating operator hierarchy