remove legacy srcElement syntax