case function removed