complete and debug, come into some problems