replace _this with self