changes to case insensitive check