add rotate and modify doc