changed set to array