added loads of math/array code to add load