function added to subscriber.py