fixing doThis with extend()