fix data type for width and length