build from array and object