fix issue4

delete defining "self"