updated element directive