add a check for negative amounts