working on debug with live preview