small update to save values from going negative