rewrite to show history