fix code and pre style