added modification of element val