using outer element