added element text or class check