updated operator so works properly