rewrite elementry operation