updated code to remove some bugs, refactored and only defendants are returned now