fix code and note format