code format and warning clean