update prediction removing redundant entries