type checking needed to be case insensitive