refactor(unwanted_pals): improved perfromance and docstring