solve the pickpublicleftfactor problem