fixed wrong use of exists