added self to line 189