fixed debug

this fix my debug check that changes and rewrite