fixs bugs,fix code format