new compure alghrithm and part right result