update to fix a signed integer error