simplify

caveat: totally untested