improving debug