use julia api replace function call for eltype