add exclude logic