added feedforward prediction