change pop to shift to grab method off beginning of array