adding self when accessing attributes