rewrote the top