fixed adding to array