Put the filter before the pump,I had one of those aftermarket glass filters that screwed apart to clean and change the filter come apart and catch the motor on fire. The previous owner installed it and luckily it did not do much damage.