fix is_a condition