fix for #2

replaces self with $$