moved debugging output