conversion
Last modification for old algortihm.