length correction