added update_dept()