slave codes