corrected this ref to point to self to resolve context error