changes comparison into equation