made the program a little smarter