handle negative numbers in makeValue