self was not defined