added exclude functionality