department functionality complete