modifed FiberTube calculation and related functions