using triggers to avoid units