Rewrite function without parenvs