added linear prediction