better friction model to fix chattering

The model is now working, and chattering is gone