update department function