working on debug