bouncing and friction