modified DEBUG