refined excluding logic