tighten check for $$ to not care about $$foo