avoid nil
add ability to filter by membership conditions