initial temporal prediction implementation, still needs work