finishd all the code need to run it and finish report