FIX: mid computations, ADD: test when element is not in array