updated predict