mocking up bending stiffness code