fixed search to deal with case insensitivity