add in function add director