semi complete step and project. fixed some bugs in flexible rods