match function returns boolean true