keep tight algorithm can work now.