remove scala existential warnning