use _contains rather than _indexOf where appropriate