swapped out lists for arrays, functions compeletely is noticeably slower