moving print to debug.