removed testing starting getchar();