added exclude function