added begin of debug