add element functionality added