updating elements