removed dependency on %notin%