the program should be faster now