check for negative values