fix a bug
almost finish
debug finish; debug info deleted