rewrote 6