changed object to array