rewrite of output