Better handling of " ~ . - id" type formula