first version of motorFriction* compiling