added getSelf method