add slave some code