There are still some problems existing in the code