BANGOR — A 48-year-old Maine man has been convicted for the second time of sexually assaulting two of his daughter’s friends.

Jack Dempsey Bailey II of Bangor entered guilty pleas on Monday, nine months after his first conviction was overturned by the Maine Supreme Judicial Court. Bailey’s guilty pleas to 12 charges are conditional, meaning he can withdraw the pleas if he wins another appeal to the state supreme court.

Bailey was convicted in January 2009 and sentenced to 10 years in prison.

Maine’s high court overturned the conviction on the grounds police illegally got the evidence from his computer.

The Bangor Daily News says Bailey’s attorney argued that victim testimony should be excluded because police identified the victims through the illegal search.