correctly calculate length
bump