replace methods by elements