edited julia code