handle negative integers