optimized math libs, random shit