adding isOnList method