final rewrite
delete trash