fixed reference to self instead of this that didn't work