debuged version