failing to read multiple objects in array