update intra prediction