remove second, identitcal if-clause