trying to avoid alignment error again-switched length_ and type_
trying to avoid alignment error again-switched length_ and type_