trying to debug the program