merged operators cases, resulting in clearer code