replace static by self in method header