removed unused controller and refactored the distributions controller