solved the second problem too
did a decent part of making fixed parts of loops only get calculated once
lol, inlining is partially done