Fixed to and from 66 algorithm