got rid of debug code