added jl777 function