fixed paramentar to properly pull department