working debug