adapt code to changed frege.List