started code for new slave