this is all my loops and a squ root.