[ADD] added debug code (commented out)
[CHANGE] changed safe to done