fix function to be case insensitive