fix: self in master function