fix logic for - result