finished the Julian function