fixed case insensitive check