loading items from file into an array