added handling of preferred cases