remove unecessary union case computation