discovered strcat, rewrote most of the end of the program