changed print to debug option