added new element functionality