rotstr.c should be finished