updated to work with julia