bug fix: If a level is passed in, then it should now return the correct array