substitute @el in code for current parent reference