modelling friction, but still not working