work on debug window