completed the code, debug started