changed code to use new case assignment custom setting