Debuging

saved process still need to fix some bugs.