confusing checkIgnore function is confusing...