change code from julia