replace -- operator with diff