rewrite p7
Don't like p9, copy the answer