extract handling of negative numbers