putting code for force in a header file