use correct reference to self instead of this