added todo about underflow prevention