fix code format, delete not used code