update length param