fixed array import issues, still need to comment the code and figure out next step(s)