loading length compute impl