weight is type integer