should have been an object not array