some changes

change the method of adding teacher and attr