added self to method declaration