proglang. replaced object with array of objects