generalized prediction routine