rewrite index

pure is good