naive approach to both pe7 and pe8 finished