changed min to max to make departments fit