added function findElement