update predict functionality