refactored duplicate feed check