forward algorithm in better speed