added case insenstive check