added a new filter for friends relationship in Manager.py