problems with `this` switching to $