thread didn't recognize the passed parameter correctly