accounting for get returning an array of objects when getting by id