added omitold to element search