keepItemsInArray() was not declared static